'use strict';

Object.defineProperty(exports, "__esModule", {
    value: true
});
var versionLessThen = exports.versionLessThen = function versionLessThen() {
    var ver1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
    var ver2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';

    var ver1Arr = ver1.split('.');
    var ver2Arr = ver2.split('.');
    var len = Math.max(ver1Arr.length, ver2Arr.length);
    var v1 = void 0,
        v2 = void 0;
    for (var i = 0; i < len; i++) {
        v1 = ver1Arr[i];
        v2 = ver2Arr[i];
        if ((v1 || 0) - 0 < (v2 || 0) - 0) {
            return true;
        }
    }
    return false;
};
exports.default = versionLessThen;